﻿using Microsoft.Extensions.DependencyInjection;

namespace OpenAdmin.HttpApi;

/// <summary>
/// 
/// </summary>
public interface IA
{
    /// <summary>
    /// 
    /// </summary>
    void Show();
}
/// <summary>
/// 
/// </summary>
public class A : IA, ITransientDependency
{
    /// <summary>
    /// 
    /// </summary>
    public void Show()
    {
        System.Console.WriteLine("this is A Show method");
    }
}
/// <summary>
/// 
/// </summary>
public interface IB
{
    /// <summary>
    /// 
    /// </summary>
    void Show();
}
/// <summary>
/// 
/// </summary>
[Dependency()]
public class B : IB
{
    /// <summary>
    /// 
    /// </summary>
    public void Show()
    {
        System.Console.WriteLine("this is B Show method");
    }
}
